package com.suxiaoxiao.springbootlearn.designpattern.commandpattern.commands.stereo;

import lombok.Setter;
import lombok.ToString;

/**
 * 音响
 * @author 、
 */
@Setter
@ToString
public class Stereo {

    private String name;

    private String cd;

    private String dvd;

    private String radio;

    private int volume;

    public Stereo() {
    }

    public Stereo(String name) {
        this.name = name;
    }

    public void on() {
        System.out.println(name + "stereo is on");
    }

    public void off() {
        System.out.println(name + "stereo is off");
    }

}
